package com.yazdankhah.beans;

import java.util.Objects;

/**
 *
 * @author ahmad
 */
public class Verse {
  
  private int chapter;
  private int verse;
  private String text;


  public Verse(int chapter, int verse, String text) {
    this.chapter = chapter;
    this.verse = verse;
    this.text = text;
  }


  @Override
  public int hashCode() {
    int hash = 5;
    hash = 83 * hash + this.chapter;
    hash = 83 * hash + this.verse;
    hash = 83 * hash + Objects.hashCode(this.text);
    return hash;
  }


  @Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }
    if (getClass() != obj.getClass()) {
      return false;
    }
    final Verse other = (Verse) obj;
    if (this.chapter != other.chapter) {
      return false;
    }
    if (this.verse != other.verse) {
      return false;
    }
    return true;
  }


  @Override
  public String toString() {
    return "Verse{" + "chapter=" + chapter + ", verse=" + verse + ", text=" + text + '}';
  }
  

  public int getChapter() {
    return chapter;
  }


  public void setChapter(int chapter) {
    this.chapter = chapter;
  }


  public int getVerse() {
    return verse;
  }


  public void setVerse(int verse) {
    this.verse = verse;
  }


  public String getText() {
    return text;
  }


  public void setText(String text) {
    this.text = text;
  }
  
} //class
